<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page session="false"%><%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>个人中心</title>
        <META http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <link href="<c:url value="/resources/css/normalize.css" />" rel="stylesheet" type="text/css" />
		<link href="<c:url value="/resources/css/lib.css" />" rel="stylesheet" type="text/css" />
		<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet" type="text/css" />
        
        <script src="<c:url value="/resources/jquery/jquery.js" />"></script>
        <style>
        	html,body{
        		height: 100%;
        		overflow: hidden;
        	}
        	
        	body{
        		padding: 0;
        		margin: 0;
        		overflow: hidden;
        		height: 100%;
        		display: block;
        	}
        </style>
	</head>
	<body onload="doOnload();">
		<div id="header">
		<jsp:include page="/resources/static/menu.jsp"></jsp:include>
		</div>
		<div class="box3" id="content">
			<div class="memberCenter">
				<div class="left">
					<div class="title">会员中心</div>
					<ul>
						<li><a href="<c:url value="/member/editMember" />" target="detailFrame">我的资料</a></li>
						<li><a href="<c:url value="/product/list" />?page=1&pageSize=10" target="detailFrame">我发布的媒体</a></li>
						<li><a href="#">我求购的媒体</a></li>
						<li><a href="#">发布求购</a></li>
						<li><a href="<c:url value="/product/update" />" target="detailFrame">发布新媒体</a></li>
					</ul>
				</div>
				<div class="right">
					<iframe id="detailFrame" name="detailFrame" src="" frameborder=0 width="100%"></iframe>
				</div>
			</div>
		</div>
		<div id="footer"></div>
	</body>
</html>
<script>
function doOnload(){
	onresize = function(){
		var hh = $('#header').outerHeight();
		var hf = $('#footer').outerHeight();
		var hb = $('html').outerHeight();
		//alert(hb);
		var hb = document.documentElement.clientHeight;
		var h = hb -hf -hh- 20;
		//alert(h);
		$('#detailFrame').attr('height', h + "px");
	}
	onresize();
};
/**
onresize = function(){
	$('.memberCenter').hide();
	var bh = $(document.body).innerHeight();
	var th = document.documentElement.clientHeight;
	//alert(th-bh);
	var fh = th - bh - 80;
	$('iframe').css({height: fh + 'px'});
	$('.memberCenter').show();
}
onresize();
**/
</script>
